﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Threading;
using System.Windows.Forms;

namespace myking
{
    public partial class testfrm : Form
    {
        public testfrm()
        {
            InitializeComponent();
        }

        private void testfrm_Load(object sender, EventArgs e)
        {

        }

        private void loopsendmessage()
        {
            //HistoryScript.businesstypeName = "Y";
            //HistoryScript.programhwnd = Convert.ToInt32(textBox1.Text);
            //HistoryScript.keydown = Convert.ToInt32(textBox2.Text);
            //HistoryScript.delaytime = Convert.ToDouble(textBox3.Text);
            //HistoryScript.MySendtemp();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            //CDmSoft dm = new CDmSoft();
            //Thread.Sleep(3000);
            //textBox1.Text = dm.GetMousePointWindow().ToString();
            //dm.Dispose();
            //dm = null;
        }

        private void button2_Click(object sender, EventArgs e)
        {
            //Thread f = new Thread(loopsendmessage);
            //f.Start();
        }

        private void button3_Click(object sender, EventArgs e)
        {
            //HistoryScript.businesstypeName = "N";
        }

        private void button4_Click(object sender, EventArgs e)
        {
            scriptClass.programhWnd = (IntPtr)Convert.ToInt64(textBox1.Text, 16);
            //richTextBox1.Text = scriptClass.ReadProssmemorystr(scriptClass.programhWnd, textBox2.Text);
            //richTextBox1.Text = scriptClass.redtext(scriptClass.programhWnd, textBox2.Text);
            //richTextBox1.Text = scriptClass.ReadProssmemorystr(scriptClass.programhWnd, textBox2.Text);
            
            richTextBox1.Text = scriptClass.GetPtrToIpAddr(scriptClass.programhWnd, textBox2.Text);

            
            //getrich rich = new getrich();
            //string tmp = rich.Process_ReadRichEditText(scriptClass.programhWnd);
        }

    }
}
